package cn.yjl.sign.util;

import org.apache.http.Header;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;

public class HTTPUtil {
    public static String doGet(String HTTP_URL, Object object) {

        return null;
    }
    public static String doPost(String url, Object object) {
        CloseableHttpClient httpClient = null;
        CloseableHttpResponse httpResponse = null;
        // 创建httpClient实例
        httpClient = HttpClients.createDefault();
        // 创建httpPost远程连接实例
        HttpPost httpPost = new HttpPost(url);
        // 设置请求头
        httpPost.addHeader("Content-Type", "application/x-www-form-urlencoded");
        return null;
    }
}
